load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "balloon.go",
        "channels.go",
        "clock.go",
        "console.go",
        "graphics.go",
        "host_device.go",
        "input_device.go",
        "launch_security.go",
        "panic_devices.go",
        "rng.go",
        "sound.go",
        "tpm.go",
        "vsock.go",
        "watchdog.go",
    ],
    importpath = "kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/converter/compute",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/downwardmetrics:go_default_library",
        "//pkg/pointer:go_default_library",
        "//pkg/tpm:go_default_library",
        "//pkg/util:go_default_library",
        "//pkg/virt-controller/watch/topology:go_default_library",
        "//pkg/virt-launcher/virtwrap/api:go_default_library",
        "//pkg/virt-launcher/virtwrap/converter/virtio:go_default_library",
        "//pkg/virt-launcher/virtwrap/launchsecurity:go_default_library",
        "//staging/src/kubevirt.io/api/core/v1:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "ballon_test.go",
        "channels_test.go",
        "clock_test.go",
        "compute_suite_test.go",
        "console_test.go",
        "graphics_test.go",
        "host_device_test.go",
        "input_device_test.go",
        "launch_security_test.go",
        "panic_devices_test.go",
        "rng_test.go",
        "sound_test.go",
        "tpm_test.go",
        "vsock_test.go",
        "watchdog_test.go",
    ],
    race = "on",
    deps = [
        ":go_default_library",
        "//pkg/downwardmetrics:go_default_library",
        "//pkg/libvmi:go_default_library",
        "//pkg/libvmi/status:go_default_library",
        "//pkg/pointer:go_default_library",
        "//pkg/util:go_default_library",
        "//pkg/virt-launcher/virtwrap/api:go_default_library",
        "//staging/src/kubevirt.io/api/core/v1:go_default_library",
        "//staging/src/kubevirt.io/client-go/testutils:go_default_library",
        "//vendor/github.com/onsi/ginkgo/v2:go_default_library",
        "//vendor/github.com/onsi/gomega:go_default_library",
    ],
)
